function [] = testInterface()
    global udpInterfaceObj;
    pluginName = "Test";
    pluginCNName = "中文测试";
    appName = "run_test_xml";
    udpInterfaceObj = udpInterface(pluginName,pluginCNName,appName);
    
    udpInterfaceObj.cbegin();
    try
        pluginCal();
    catch exception
        disp("error message:");
        disp(exception.identifier);
        disp(exception.message);
        disp(exception.stack(1));
        errorStack = exception.stack(1);
        % errorStr = sprintf("error: type:%s;msg:%s;file: %s;name:%s;line:%d",...
        %            exception.identifier,...
        %            exception.message,...
        %            errorStack.file,...
        %            errorStack.name,...
        %            errorStack.line);
        % disp(errorStr);
        udpInterfaceObj.cerror(exception.identifier,exception.message,errorStack.file,errorStack.name,errorStack.line);
    end
        
    udpInterfaceObj.cend();
end